import {createApp} from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {createPinia} from "pinia";
import * as ELIcons from '@element-plus/icons-vue';
import router from "./route/router.ts";
import "./common.scss"
// const pinia = createPinia()

const app = createApp(App)

Object.keys(ELIcons).forEach(key => {
    app.component(key, ELIcons[key as keyof typeof ELIcons])
})

app.use(ElementPlus)
app.use(createPinia() as any)
app.use(router)
app.mount('#app')
